import request from '@/utils/request'

// 查询设备控制批量列表
export function listDeviceControl(query) {
  return request({
    url: '/device/deviceControl/list',
    method: 'get',
    params: query
  })
}

// 查询设备控制批量详细
export function getDeviceControl(id) {
  return request({
    url: '/device/deviceControl/' + id,
    method: 'get'
  })
}

// 新增设备控制批量
export function addDeviceControl(data) {
  return request({
    url: '/device/deviceControl',
    method: 'post',
    data: data
  })
}

// 修改设备控制批量
export function updateDeviceControl(data) {
  return request({
    url: '/device/deviceControl',
    method: 'put',
    data: data
  })
}

// 删除设备控制批量
export function delDeviceControl(id) {
  return request({
    url: '/device/deviceControl/' + id,
    method: 'delete'
  })
}
